<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Application.Master" Inherits="System.Web.Mvc.ViewPage<DomainModel.Entities.Application>" %>

<asp:Content ContentPlaceHolderID="TitleContent" runat="server">
	Application
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">

    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm("Edit", "Application"))
       {%>

        <fieldset class="staffingexpert">
            <legend class="staffingexpert">Applicant Information</legend>
            <%= Html.Hidden("ApplicationID")%>
            <%= Html.Hidden("UserID")%>
            <%= Html.Hidden("Position1") %>
            <%= Html.Hidden("Position2") %>
            <%= Html.Hidden("Position3") %>
            <%= Html.Hidden("Notes")%>
            
            <p>
                <label class="staffingexpert" for="First_Name">First Name:</label>
                <%= Html.TextBox("First_Name", Model.First_Name, new { @class = "staffingexperttextbox", @style = "width: 400px;" })%>
                <%= Html.ValidationMessage("First_Name", "*") %>
            </p>
            <p>
                <label class="staffingexpert" for="Last_Name">Last Name:</label>
                <%= Html.TextBox("Last_Name", Model.Last_Name, new { @class = "staffingexperttextbox", @style = "width: 400px;" })%>
                <%= Html.ValidationMessage("Last_Name", "*") %>
            </p>
            <p>
                <label class="staffingexpert" for="Middle_Name">Middle Name:</label>
                <%= Html.TextBox("Middle_Name", Model.Middle_Name, new { @class = "staffingexperttextbox", @style = "width: 400px;" })%>
                <%= Html.ValidationMessage("Middle_Name", "*") %>
            </p>
            <p>
                <label class="staffingexpert" for="Old_Name">Past Name:</label>
                <%= Html.TextBox("Old_Name", Model.Old_Name, new { @class = "staffingexperttextbox", @style = "width: 400px;" })%>
                <%= Html.ValidationMessage("Old_Name", "*") %>
            </p>
            <p>
                <label class="staffingexpert" for="Social_Security">Social Security Number:</label>
                <%= Html.TextBox("Social_Security", Model.Social_Security, new { @class = "staffingexperttextbox", @style = "width: 80px;" })%>
                <%= Html.ValidationMessage("Social_Security", "*") %>
            </p>
            <p>
                <label class="staffingexpert" for="Street">Street:</label>
                <%= Html.TextBox("Street", Model.Street, new { @class = "staffingexperttextbox", @style = "width: 400px;" })%>
                <%= Html.ValidationMessage("Street", "*") %>
            </p>
            <p>
                <label class="staffingexpert" for="City">City:</label>
                <%= Html.TextBox("City", Model.City, new { @class = "staffingexperttextbox", @style = "width: 400px;" })%>
                <%= Html.ValidationMessage("City", "*") %>
            </p>
            <p>
                <label class="staffingexpert" for="State">State:</label>
                <%= Html.TextBox("State", Model.State, new { @class = "staffingexperttextbox", @style = "width: 30px;" })%>
                <%= Html.ValidationMessage("State", "*") %>
            </p>
            <p>
                <label class="staffingexpert" for="Zipcode">Zipcode:</label>
                <%= Html.TextBox("Zipcode", Model.Zipcode, new { @class = "staffingexperttextbox", @style = "width: 50px;" })%>
                <%= Html.ValidationMessage("Zipcode", "*") %>
            </p>
            <p>
                <label class="staffingexpert" for="Phone_Number">Phone Number:</label>
                <%= Html.TextBox("Phone_Number", Model.Phone_Number, new { @class = "staffingexperttextbox", @style = "width: 80px;" })%>
                <%= Html.ValidationMessage("Phone_Number", "*") %>
            </p>

            <p>
                <label class="staffingexpert" for="Expected_Salary">Expected Salary:</label>
                <%= Html.TextBox("Expected_Salary", Model.Expected_Salary, new { @class = "staffingexperttextbox", @style = "width: 100px;" })%>
                <%= Html.ValidationMessage("Expected_Salary", "*") %>
            </p>
            <p>
                <label class="staffingexpert" for="Full_Time">Full Time?</label>
                <%= Html.CheckBox("Full_Time", Model.Full_Time)%>
                <%= Html.ValidationMessage("Full_Time", "*") %>
                &nbsp&nbsp<label class="staffingexpert" for="Days">Days?</label>
                <%= Html.CheckBox("Days", Model.Days)%>
                <%= Html.ValidationMessage("Days", "*") %>
            </p>
         
            <p>
                <label class="staffingexpert" for="Evenings">Evenings?</label>
                <%= Html.CheckBox("Evenings", Model.Evenings)%>
                <%= Html.ValidationMessage("Evenings", "*") %>
                &nbsp&nbsp<label class="staffingexpert" for="Weekends">Weekends?</label>
                <%= Html.CheckBox("Weekends", Model.Weekends)%>
                <%= Html.ValidationMessage("Weekends", "*") %>
           </p>
            
           <label class="staffingexpert">Please Select up to three positions:</label>
            <br/>1. <%= Html.DropDownList("Position1DropDown", (SelectList)ViewData["position1list"]) %>
            <br/>2. <%= Html.DropDownList("Position2DropDown", (SelectList)ViewData["position2list"])%>
            <br/>3. <%= Html.DropDownList("Position3DropDown", (SelectList)ViewData["position3list"])%>
           
            <p>
            &nbsp;<input id="submit0" type="submit" value="Save" name="save" 
        style="position: relative; top: 2px; left: -2px; width: 60px" /> 
        |  <%=Html.ActionLink("Cancel", "Index") %>
            </p>
        </fieldset>

    <% } %>

</asp:Content>

